<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="author" content="Luciano Silveira" />
<meta name="language" content="pt-br" />
<link rel="stylesheet" href="stilo.css" type="text/css" />
<title>- CQ IPAC - Login</title>

</head>
<body id="login-body">

<div id="centralizar">
<div id="loginBox">
<div id="loginLogo"></div>
<div id="loginHeader">Controle de Qualidade</div>
<div id="loginTable">
<fieldset><s:form action="menu">

	

	<%
		if (session.getAttribute("erro") != null) {
	%>
	<div id="loginErro">${erro}</div>
	<%
		}
	session.removeAttribute("erro");
%>

	<s:textfield label="Usuario" name="funcionario.desUsuario" size="10"
		maxlength="45" />
	<s:password label="Senha" name="funcionario.desSenha" size="10"
		maxlength="45" />

	<%-- --     <s:select label="Select Day" 
    name="daysname" 
    headerKey="1"
    headerValue="-- Please Select --"
    list="day"
    />  --%>

	<s:select label="Setores" name="setor.codSetor" list="setores"
		listKey="codSetor" listValue="nomSetor" multiple="false" size="1"
		required="true" />
	<s:submit value="Entrar" />
</s:form></fieldset>
</div>

<div id="loginVersion">Controle de Qualidade IPAC, Vers&atilde;o:
1.0.1</div>
</div>
</div>

<script language="JavaScript" type="text/javascript">
<!--
function focusCursor() {
if(document.loginform.userName){
document.loginform.userName.focus();
}
}

-->
</script>

</body>
</html>

